﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace 功能测试软件.ViewModel
{
    public class SingelTestViewModel : Notify
    {
        private int _Channel;
        /// <summary>
        /// 通道号 1--5
        /// </summary>
        public int Channel { get { return _Channel; } set { _Channel = value; RaisePropertyChanged("Channel"); } }

        private SolidColorBrush _MacStepColor = Brushes.LightGray;
        /// <summary>
        /// 获取Mac状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush MacStepColor { get { return _MacStepColor; } set { _MacStepColor = value; RaisePropertyChanged("MacStepColor"); } }

        private string _Mac;
        /// <summary>
        /// Mac地址
        /// </summary>
        public string Mac { get { return _Mac; } set { _Mac = value; RaisePropertyChanged("Mac"); } }

        private SolidColorBrush _RgbStepColor = Brushes.LightGray;
        /// <summary>
        /// 点亮三色灯状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush RgbStepColor { get { return _RgbStepColor; } set { _RgbStepColor = value; RaisePropertyChanged("RgbStepColor"); } }

        private SolidColorBrush _RgbColor = Brushes.LightGray;
        /// <summary>
        /// 三色灯颜色 Red-Green-Blue
        /// </summary>
        public SolidColorBrush RgbColor { get { return _RgbColor; } set { _RgbColor = value; RaisePropertyChanged("RgbColor"); } }

        private SolidColorBrush _PicStepColor = Brushes.LightGray;
        /// <summary>
        /// 刷图片状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush PicStepColor { get { return _PicStepColor; } set { _PicStepColor = value; RaisePropertyChanged("PicStepColor"); } }

        private BitmapImage _Pic;
        /// <summary>
        /// 刷入图片
        /// </summary>
        public BitmapImage Pic { get { return _Pic; } set { _Pic = value; RaisePropertyChanged("Pic"); } }

        private SolidColorBrush _dBmStepColor = Brushes.LightGray;
        /// <summary>
        /// 信号强度检测状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush dBmStepColor { get { return _dBmStepColor; } set { _dBmStepColor = value; RaisePropertyChanged("dBmStepColor"); } }

        private string _dBm;
        /// <summary>
        /// 信号强度
        /// </summary>
        public string dBm { get { return _dBm; } set { _dBm = value; RaisePropertyChanged("dBm"); } }

        private SolidColorBrush _isokStepColor = Brushes.LightGray;
        /// <summary>
        /// 结果确认状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush isokStepColor { get { return _isokStepColor; } set { _isokStepColor = value; RaisePropertyChanged("isokStepColor"); } }

        private SolidColorBrush _CurStepColor = Brushes.LightGray;
        /// <summary>
        /// 电流检测状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush CurStepColor { get { return _CurStepColor; } set { _CurStepColor = value; RaisePropertyChanged("CurStepColor"); } }

        private string _Current;
        /// <summary>
        /// 电流值
        /// </summary>
        public string Current { get { return _Current; } set { _Current = value; RaisePropertyChanged("Current"); } }

        private SolidColorBrush _ResultStepColor = Brushes.LightGray;
        /// <summary>
        /// 等待结果状态颜色 LightGray-等待；Gold-测试中；Tomato-失败；YellowGrenn-成功
        /// </summary>
        public SolidColorBrush ResultStepColor { get { return _ResultStepColor; } set { _ResultStepColor = value; RaisePropertyChanged("ResultStepColor"); } }

        private SolidColorBrush _ResultColor = Brushes.LightGray;
        /// <summary>
        /// 结果颜色 LightGray-等待; Tomato-失败；ForesetGreen-成功
        /// </summary>
        public SolidColorBrush ResultColor { get { return _ResultColor; } set { _ResultColor = value; RaisePropertyChanged("ResultColor"); } }

        private string _Result="Wait";
        /// <summary>
        /// 测试结果  Wait Pass Fail
        /// </summary>
        public string Result { get { return _Result; } set { _Result = value; RaisePropertyChanged("Result"); } }

        private int _Count=0;
        /// <summary>
        /// 测试结果  Wait Pass Fail
        /// </summary>
        public int Count { get { return _Count; } set { _Count = value; RaisePropertyChanged("Count"); } }

        private double _Opacity = 1;
        /// <summary>
        /// 通道透明度  true=1;false=0.1
        /// </summary>
        public double Opacity { get { return _Opacity; } set { _Opacity = value; RaisePropertyChanged("Opacity"); } }
    }
}
